<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>	
	<script language="javascript" src="<%=contextPath%>/js/func.js"type=""></script>
	<script type="text/javascript" src="<%=contextPath%>/js/My97DatePicker/WdatePicker.js"></script>

  </head>
  <body>
  <div id ='tbar'></div>
		<form id="frmM" class="ct" name="frmM" method="POST" >
			<input type="hidden" id="hiddenids" name="hiddenids" value="${hiddenids}"/>
			<input type="hidden" name="searchBean.displayFlag" value="${searchBean.displayFlag}"/>
			<input type="hidden" name="searchBean.con1" id="searchBean.con1" value="${searchBean.con1}" >
			<input type="hidden" name="searchBean.con20" id="searchBean.con20" value="${searchBean.con20}" >
			<input type="hidden" name="conditionHtml" />
			<table width="100%" id="contab">
				<tr>
					<th >月度工作计划：</th>
					<td><a href="#" onclick="showdetail('1','0')">共${plan_total}条</a></td>
					<td><a href="#" onclick="showdetail('1','1')">已准备${plan_prepared}条</a></td>
					<td><a href="#" onclick="showdetail('1','2')">未准备${plan_unpre}条</a></td>
				</tr>
				<tr>
					<th rowspan="2">临时工作安排：</th>
					<td><a href="#" onclick="showdetail('2','3')">生产工作安排共${temp_sctotal}条</a></td>
					<td><a href="#" onclick="showdetail('2','4')">已准备${temp_scprepared}条</a></td>
					<td><a href="#" onclick="showdetail('2','5')">未准备${temp_scunpre}条</a></td>
				</tr>
				<tr>
					<td><a href="#" onclick="showdetail('3','6')">管理工作安排共${temp_gltotal}条</a></td>
					<td><a href="#" onclick="showdetail('3','7')">已准备${temp_glprepared}条</a></td>
					<td><a href="#" onclick="showdetail('3','8')">未准备${temp_glunpre}条</a></td>
				</tr>
			</table>
		<hr>
	</form>
  </body>
  <script>
		
		function showdetail(datafrom,showtype){
			var vtitle;
			var targetUrl;
			if(datafrom == '1'){
				vtitle = '月度工作计划';
			}else if(datafrom == '2'){
				vtitle = '临时生产安排';
			}else if(datafrom == '3'){
				vtitle = '临时管理安排';
			}
			targetUrl = '<%=contextPath%>/plan!getGzapList.do?searchBean.con6=1&datafrom=' + datafrom + '&showtype=' + showtype;
			parent.addTab(vtitle,targetUrl,showtype+1);
		}
		
	</script>
</html>
